package com.openbravo.pos.instance;

import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;

public class InstanceManager
{
  private Registry m_registry = LocateRegistry.createRegistry(1099);
  private AppMessage m_message;

  public InstanceManager(AppMessage paramAppMessage)
    throws RemoteException, AlreadyBoundException
  {
    this.m_message = paramAppMessage;
    AppMessage localAppMessage = (AppMessage)UnicastRemoteObject.exportObject(this.m_message, 0);
    this.m_registry.bind("AppMessage", localAppMessage);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.instance.InstanceManager
 * JD-Core Version:    0.6.0
 */